package com.example.myactspringboot.bean;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

/**
 * @Author Zhouchb
 * @Create 2024-04-10 21:02
 * @Description
 */
@ColumnWidth(20)
public class Student {
    //  @ExcelIgnore
    @ExcelProperty(value = "id",index=0)
    @ColumnWidth(value = 18)
    private String id;
    @ExcelProperty(value = "姓名",index=1)
    private String name;
    @ExcelProperty(value = "分数",index=2)
    private Double score;

    public Student(String id, String name, Double score) {
        this.id = id;
        this.name = name;
        this.score = score;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }
}
